package com.dx.common.table.ppt;

/**
 * Ret_crt_noId entity. @author MyEclipse Persistence Tools
 */

public class Ret_crt_noId implements java.io.Serializable {

	// Fields

	private String type;
	private String key_id;

	// Constructors

	/** default constructor */
	public Ret_crt_noId() {
	}

	/** full constructor */
	public Ret_crt_noId(String type, String key_id) {
		this.type = type;
		this.key_id = key_id;
	}

	// Property accessors

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getKey_id() {
		return this.key_id;
	}

	public void setKey_id(String key_id) {
		this.key_id = key_id;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ret_crt_noId))
			return false;
		Ret_crt_noId castOther = (Ret_crt_noId) other;

		return ((this.getType() == castOther.getType()) || (this.getType() != null
				&& castOther.getType() != null && this.getType().equals(
				castOther.getType())))
				&& ((this.getKey_id() == castOther.getKey_id()) || (this
						.getKey_id() != null && castOther.getKey_id() != null && this
						.getKey_id().equals(castOther.getKey_id())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getType() == null ? 0 : this.getType().hashCode());
		result = 37 * result
				+ (getKey_id() == null ? 0 : this.getKey_id().hashCode());
		return result;
	}

}